#include "Animal.h"

Animal::Animal(std::string name, int age)
{
  this->name = name;
  this->age = age;
  std::cout << "Animal constructor called for " << this->name << std::endl;
}

Animal::~Animal()
{
  std::cout << "Animal destructor called for " << this->name << std::endl;
}

void Animal::eat()
{
  std::cout << "Animal " << this->name << " is eating" << std::endl;
}

int Animal::GetAge()
{
  return this->age;
}
std::string Animal::getName()
{
  return this->name;
}